import 'dart:async';

import 'package:flutter/material.dart';

class VideoPlayerListDemoState {
  List<VideoModel>? list;
  late final ScrollController sc;
}

class VideoModel {
  String? title;
  String? url;
  String? image;

  double? off;

  late final StreamController<bool> streamController = StreamController();

  VideoModel({this.title, this.url, this.image});

  setupOff(GlobalKey key) {
    if (off != null) {
      return;
    }
    final obj = key.currentContext?.findRenderObject() as RenderBox?;
    off = obj?.localToGlobal(Offset(0, obj.size.height)).dy;
  }
}
